import {
	ApiUtils,
	_axios
} from 'api/apiUtil.js';
import constant from 'util/constant.js';
const api = {
	orderlist: (request, successCallback, failCallback, exceptionCallback) => {
		ApiUtils.sendLoadingAjax(constant.serverUrl + "/order/currentorder/orderlist", request, successCallback,
			failCallback, exceptionCallback);
	},
	save: (request, successCallback, failCallback, exceptionCallback) => {
		ApiUtils.sendLoadingAjax(constant.serverUrl + "/order/currentorder/save", request, successCallback, failCallback,
			exceptionCallback);
	},
	toUpdate: (request, successCallback, failCallback, exceptionCallback) => {
		ApiUtils.sendLoadingAjax(constant.serverUrl + "/order/currentorder/toUpdate", request, successCallback,
			failCallback, exceptionCallback);
	},
	update: (request, successCallback, failCallback, exceptionCallback) => {
		ApiUtils.sendLoadingAjax(constant.serverUrl + "/order/currentorder/update", request, successCallback, failCallback,
			exceptionCallback);
	},
	remove: (request, successCallback, failCallback, exceptionCallback) => {
		ApiUtils.sendLoadingAjax(constant.serverUrl + "/order/currentorder/remove", request, successCallback, failCallback,
			exceptionCallback);
	},
	selectJdPrint: (request, successCallback, failCallback, exceptionCallback) => {
		ApiUtils.sendLoadingAjax(constant.serverUrl + "/order/currentorder/selectJdPrint", request, successCallback,
			failCallback, exceptionCallback);
	},
	selectJdPrintOne: (request, successCallback, failCallback, exceptionCallback) => {
		ApiUtils.sendLoadingAjax(constant.serverUrl + "/order/currentorder/selectJdPrintOne", request, successCallback,
			failCallback, exceptionCallback);
	},
	countTc: (request, successCallback, failCallback, exceptionCallback) => {
		ApiUtils.sendLoadingAjax(constant.serverUrl + "/order/currentorder/countTc", request, successCallback,
			failCallback, exceptionCallback);
	},
	updateps: (request, successCallback, failCallback, exceptionCallback) => {
		ApiUtils.sendLoadingAjax(constant.serverUrl + "/order/currentorder/updateps", request, successCallback,
			failCallback, exceptionCallback);
	},
}

export default api;
